#coding=utf-8
import threading,time
import urllib
info =[1,2,3,4,5,222]
def test(i):
    print info[i]
    print "hello end"
    time.sleep(0.01)

for i in xrange(0,6):
   th = threading.Thread(target=test,args=[i])
   th.start()

urlinfo = ['http://www.sohu.com','http://www.163.com','http://www.sina.com']
def url_list(j):
    c = urllib.urlopen(urlinfo[j])
    list = c.read()
    content = list.findAll("<title>").text()
    print content
    c.close()


for j in xrange(0,3):
    te = threading.Thread(target=url_list,args=[j])
    te.start()

